﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace BLL.PayRecordsTransaction
{
    public class LoadSinglePayRecordsTransaction : QueryPayRecordsTransaction
    {
        public LoadSinglePayRecordsTransaction(int _PayRecordOID)
        {
            payRecordOID = _PayRecordOID;
        }

        private int payRecordOID;

        public T_PayRecordsObject ResultRecord
        {
            get
            {
                base.Execute();
                return base.PayRecords.SingleOrDefault(x => x.Db_OID == payRecordOID);
            }
        }


    }
}
